{php include pubTemplate("header")}

<div class="container">


    <div class="row">
        <div class="col-md-3"></div>
        <div class="col-md-6">

            <div class="card">
                <div class="card-body">
                    <h1 class="h5 font-weight-bold">移动帖子：{tsTitle($strTopic['title'])}</h1>
                    <hr>

                    {if $arrGroup}
                    <form method="POST" action="{SITE_URL}index.php?app=topic&ac=move&ts=do">

                        <div class="form-group">
                            <label>选择要转移的小组：</label>
                            <select name="groupid" class="form-control">
                                {loop $arrGroup $key $item}
                                <option value="{$item['groupid']}">{tsTitle($item['groupname'])}</option>
                                {/loop}
                            </select>
                        </div>

 
                       
                            <input type="hidden" name="topicid" value="{$topicid}" />
        
                            <button class="btn btn-sm btn-info" type="submit">移动</button>
        
                            <a class="btn btn-sm btn-outline-secondary" href="{tsUrl('topic','show',array('id'=>$topicid))}">返回</a>
                    </form>
                    {else}
                    <div>
                        没有可以移动的小组！ <a class="btn btn-sm btn-outline-secondary" href="{tsUrl('topic','show',array('id'=>$topicid))}">返回</a>
                    </div>
                    {/if}
        
                </div>
            </div>

        </div>
        <div class="col-md-3"></div>
    </div>



</div>

{php include pubTemplate("footer")}